package com.zb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjCodeLog02;
import com.zb.entity.ZjCodeLog03;
import com.zb.mapper.ZjCodeLog02Mapper;
import com.zb.mapper.ZjCodeLog03Mapper;
import com.zb.service.ZjCodeLog02Service;
import com.zb.service.ZjCodeLog03Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 编码日志表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2023-08-24
 */
@Service
public class ZjCodeLog03ServiceImpl extends ServiceImpl<ZjCodeLog03Mapper, ZjCodeLog03> implements ZjCodeLog03Service {
    @Resource
    private ZjCodeLog03Mapper codeLog03Mapper;

    @Override
    public void deleteBatchByCodeIds(List<Long> codeIds) {
        if (null == codeIds || codeIds.isEmpty()) {
            return;
        }
        QueryWrapper<ZjCodeLog03> wrapper = new QueryWrapper<>();
        wrapper.in("code_id", codeIds);
        codeLog03Mapper.delete(wrapper);
    }
}
